import request from "@/utils/request.js";

//查询就诊人信息、购物车药品信息
export function pressInfo(data) {
	return request.post('wx/small/getPressInfo', data);
}
//发起问诊
export function create(data) {
	return request.post('wx/consultation/create', data);
}
//查询上次问诊是否结束
export function query(memberId,storeId) {
	return request.post(`wx/consultation/query?memberId=${memberId}&storeId=${storeId}`);
}
//待支付页面-根据580聊天页面返回的订单号获取就诊人信息以及购买的药品信息
export function fiveOrderInfo(bizOrderId) {
	return request.get(`wx/common/getFiveOrderInfo?bizOrderId=${bizOrderId}`);
}
//选择就诊人页面-获取购买药品是否包含处方药
export function hasPressDrug(data) {
	return request.post(`wx/small/hasPressDrug`, data);
}